<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<html>
<head>
    <title>maximo日志</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="keywords" content="10.88.15.69测试环境控制台日志打印输出"/>

    <link href="css/bootstrap.css" rel="stylesheet" type="text/css"/>
    <link href="css/bootstrap-theme.css" rel="stylesheet" type="text/css">
    <link href="css/style.css" rel="stylesheet" type="text/css">
    <link href="css/bootstrap-datetimepicker.min.css" type="text/css">

    <script src="js/bootstrap.js"></script>
    <script src="js/npm.js"></script>
    <script src="js/jquery.js"></script>
    <script src="js/bootstrap-dropdown.js"></script>
    <script src="js/bootstrap-datetimepicker.js"></script>
</head>
<body>
<div class="navbar">
    <div class="navbar-inner">
        <div class="container">
            <ul class="nav">
                <a class="brand" href="#">LOG-VIEW</a>
                <li class="active"><a href="#">Home</a></li>
                <li class="dropdown console" id="maximo-uat">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">MAXIMO UAT<b class="caret"></b></a>
                    <ul class="dropdown-menu" role="menu">
                        <li><a href="#">9080</a></li>
                        <li><a href="#">9081</a></li>
                    </ul>
                </li>
                <li class="dropdown console" id="maximo-prod">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">MAXIMO PROD<b class="caret"></b></a>
                    <ul class="dropdown-menu" role="menu">
                        <li><a href="#">9080</a></li>
                        <li><a href="#">9082</a></li>
                        <li><a href="#">9080</a></li>
                        <li><a href="#">9081</a></li>
                    </ul>
                </li>
                <li class="dropdown rest" id="rest">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">REST<b class="caret"></b></a>
                    <ul class="dropdown-menu" role="menu">
                        <li><a href="#">UAT</a></li>
                        <li><a href="#">PROD</a></li>
                    </ul>
                </li>
                <li><a href="about.jsp">About</a></li>
            </ul>
        </div>
    </div>
</div>
<h2></h2>
<div class="container">
    <section id="content_console">
        <form role="form">
            <div class="form-group">
                <label for="name">控制台信息输出（500行/次）</label>
                <textarea id="name" class="form-control comments"></textarea>
            </div>
        </form>
    </section>
    <%--<section id="content_rest">--%>
    <%--<form role="form">--%>
    <%--<div class="form-group">--%>
    <%--<label for="name">接口名称</label>--%>
    <%--<select class="form-control">--%>
    <%--<option>mxe.rest.handler.mr.mrissueornot</option>--%>
    <%--<option>mxe.rest.handler.mr.sync</option>--%>
    <%--</select>--%>
    <%--<label for="dtp_input2" class="col-md-2 control-label">调用时间</label>--%>
    <%--<div class="input-group date form_date col-md-5" data-date="" data-date-format="dd MM yyyy"--%>
    <%--data-link-field="dtp_input2" data-link-format="yyyy-mm-dd">--%>
    <%--<input class="form-control" size="16" type="text" value="" readonly>--%>
    <%--<span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>--%>
    <%--<span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>--%>
    <%--</div>--%>
    <%--<input type="hidden" id="dtp_input2" value=""/><br/>--%>
    <%--</div>--%>
    <%--</form>--%>
    <%--</section>--%>
</div>
<script>
    $(".console a").click(function () {
        $.ajax({
            url: "json.do",
            type: "get",
            data: {"port": $(this).html(), "server": $(this).parents(".dropdown").attr("id")},
            success: function (response) {
                $("#name").html(response)
            },
            error: function () {
                alert("服务器连接失败")
            }
        });
    });
    $(".rest a").click(function () {
        $.ajax({
            url: "rest.do",
            type: "get",
            data: {},
            success: function (response) {
            },
            error: function () {
                alert("服务器连接失败")
            }
        });
    });
    $(document).ready(function () {
        $('.dropdown-toggle').dropdown();
    });
</script>
</body>
</html>
